<?php if ($this->foods) :?>
<div id="tabledata" class="section">
	<h2 class="ico_mug">Danh sách thực phẩm</h2>
	<table id="table">
		<thead>
			<tr>
				<th><input type="checkbox" class="noborder" />
				</th>
				<th>Date</th>
				<th>Thực phẩm</th>
				<th>Danh mục</th>
				<th>Giá</th>
				<th>Thao tác</th>				
			</tr>
		</thead>
		<tbody>
			<?php foreach ($this->foods as $food) :?>
				<tr>
					<td class="table_check"><input type="checkbox" class="noborder" /></td>
					<td class="table_date">April 23, 2009</td>
					<td class="table_title"><a href="#"><?php echo $food['name']?></a></td>
					<td class="table_title">
						<?php 
							echo $food['price'] . ' ' . 
								$food['TTF_Model_Currency']['name'] . '/' . 
								$food['TTF_Model_Unit']['name']?>
					</td>
					<td><a href="#"><?php echo $food['TTF_Model_Categories']['name']?></a></td>
					<td>
						<a href="/san-pham/xoa/<?php echo $food['id']?>"><img src="/images/cancel.jpg" alt="cancel" /></a>						
						<a href="/san-pham/cap-nhat/<?php echo $food['id']?>"><img src="/images/edit.jpg" alt="edit" /></a>
					</td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
</div>
<a href="<?php echo $this->url(array(), 'admin-product-create')?>" ><button>Thêm thực phẩm</button></a>
<?php endif; ?>